In COBRApy version 0.3.0b4 and later, you can generate JSON files for COBRA models, and these files are compatible with Escher. See the example below.
JSON models for Escher are also available in the BiGG Database: http://bigg.ucsd.edu
In [2]:
import cobra
import cobra.io
import cobra.test
In [3]:
# Load a cobra model from anywhere you like
model = cobra.io.read_sbml_model(cobra.test.ecoli_sbml)
In [4]:
# generate a json file to load into Escher
cobra.io.save_json_model(model, 'E coli core.json')
In [ ]: